import Vue from 'vue'
import store from './store'
import Router from 'vue-router'
import Home from './views/Home.vue'

const Mine = () => import('./views/Mine.vue')
const MineShouRu = () => import('./views/MineShouRu.vue')
const MineChongZhi = () => import('./views/MineChongZhi.vue')
const MineInfo = () => import('./views/MineInfo.vue')
const MineApply = () => import('./views/MineApply.vue')
const MineHelp = () => import('./views/MineHelp.vue')
const MineAsk = () => import('./views/MineAsk.vue')
const MineConcern = () => import('./views/MineConcern.vue')
const AnswerPage = () => import('./views/AnswerPage.vue')
const SearchPage = () => import('./views/SearchPage.vue')
const ZhuanjiaLists = () => import('./views/ZhuanjiaLists.vue')
const ZhuanjiaDetail = () => import('./views/ZhuanjiaDetail.vue')
const AskPay = () => import('./views/AskPay.vue')

Vue.use(Router, store)

export default new Router({
  // mode: "history",
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine
    },
    {
      path: '/mineShouRu',
      name: 'mineShouRu',
      component: MineShouRu
    },
    {
      path: '/mineChongZhi',
      name: 'mineChongZhi',
      component: MineChongZhi
    },
    {
      path: '/mineInfo',
      name: 'mineInfo',
      component: MineInfo
    },
    {
      path: '/mineApply',
      name: 'mineApply',
      component: MineApply
    },
    {
      path: '/mineHelp',
      name: 'mineHelp',
      component: MineHelp
    },
    {
      path: '/mineAsk',
      name: 'mineAsk',
      component: MineAsk
    },
    {
      path: '/mineConcern',
      name: 'mineConcern',
      component: MineConcern
    },
    {
      path: '/answer',
      name: 'answer',
      component: AnswerPage
    },
    {
      path: '/search',
      name: 'search',
      component: SearchPage
    },
    {
      path: '/zhuanjia',
      name: 'zhuanjia',
      component: ZhuanjiaLists
    },
    {
      path: '/zhuanjiaDetail',
      name: 'zhuanjiaDetail',
      component: ZhuanjiaDetail
    },
    {
      path: '/askpay',
      name: 'askpay',
      component: AskPay
    },
    {
      path: '/askpay',
      name: 'askpay',
      component: AskPay
    }
  ]
})
